package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 告警日志表对象 tb_alert_log
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class TbAlertLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String alertId;

    /** 机构代码 */
    @Excel(name = "机构代码")
    private String institutionCode;

    /** 指标名称 */
    @Excel(name = "指标名称")
    private String dataName;

    /** 告警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "告警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date alertTime;

    /** 告警原因 */
    @Excel(name = "告警原因")
    private String cause;

    /** 告警类型（0-指标告警，1-上报告警） */
    @Excel(name = "告警类型", readConverterExp = "0=-指标告警，1-上报告警")
    private String type;

    /** 推送日志表ID */
    @Excel(name = "推送日志表ID")
    private String logId;

    /** 告警配置表ID */
    @Excel(name = "告警配置表ID")
    private String configId;

    public void setAlertId(String alertId) 
    {
        this.alertId = alertId;
    }

    public String getAlertId() 
    {
        return alertId;
    }
    public void setInstitutionCode(String institutionCode) 
    {
        this.institutionCode = institutionCode;
    }

    public String getInstitutionCode() 
    {
        return institutionCode;
    }
    public void setDataName(String dataName) 
    {
        this.dataName = dataName;
    }

    public String getDataName() 
    {
        return dataName;
    }
    public void setAlertTime(Date alertTime) 
    {
        this.alertTime = alertTime;
    }

    public Date getAlertTime() 
    {
        return alertTime;
    }
    public void setCause(String cause) 
    {
        this.cause = cause;
    }

    public String getCause() 
    {
        return cause;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setLogId(String logId) 
    {
        this.logId = logId;
    }

    public String getLogId() 
    {
        return logId;
    }
    public void setConfigId(String configId) 
    {
        this.configId = configId;
    }

    public String getConfigId() 
    {
        return configId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("alertId", getAlertId())
            .append("institutionCode", getInstitutionCode())
            .append("dataName", getDataName())
            .append("alertTime", getAlertTime())
            .append("cause", getCause())
            .append("type", getType())
            .append("logId", getLogId())
            .append("configId", getConfigId())
            .append("remark", getRemark())
            .toString();
    }
}
